<?php
class IssueType extends Zend_Db_Table
{
	protected $_name = "issuetype";
	
	public function getList()
	{
		$select = $this->_db->select()
							->from($this->_name,array('key'=>'id','value'=>'pname','icon_url'));
		$results = $this->getAdapter()->fetchAll($select);
		return $results;
	}
	public function getIssueTypeRow($tid)
	{
		$select = $this->_db->select()
							->from($this->_name,array('pname','description','icon_url'))
							->where('id = ?', $tid);
							
		$result = $this->getAdapter()->fetchRow($select);
		return $result;
	}
}